package com.eneat.smartrule.model;

import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

@Data
public class BaseModel {
    @Schema(description = "id")
    private Long id;

    @Schema(description = "规则状态（0: 禁用, 1: 启用）")
    private Integer status;

    @Schema(description = "是否删除")
    @TableLogic(value = "0", delval = "1") // 查询时只查未删除的
    private Integer isDeleted;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "修改时间")
    private Date updateTime;

}
